<script setup>
import {onMounted, ref, version} from 'vue'

const ver = ref('ok')
const tt = () => {
  ver.value = new Date().toLocaleTimeString()
}
tt()
const mm = () => {
  setInterval(tt, 1000)
}
onMounted(mm)
</script>

<template>
  <p>{{ version }}</p>
  hello vue {{ ver }}
</template>

<style scoped>

</style>
